//配置信息验证规则

//导入自定义验证规则包
const joi = require("@hapi/joi")

/* 设置自定义规则 */
const nickname = joi.string().min(0).max(12).required()
const id = joi.number().min(1).required()
const email = joi.string().email().required()


module.exports = {
    body: {
        nickname,
        id,
        email,
    }
}